package com.foreknow.elmboot.service;

import com.foreknow.elmboot.po.DeliveryAddress;

import org.apache.ibatis.annotations.Insert;


import java.util.List;

public interface DeliveryAddressService {
    /**
     * 查询
     * @param userId
     * @return
     */
    public List<DeliveryAddress> listDeliveryAddressByUserId(String userId);

    /**
     * 根据daId查询一个对象
     * @param daId
     * @return
     */

    public DeliveryAddress getDeliveryAddressById(Integer daId);

    /**
     * 添加
     * @param deliveryAddress
     * @return
     */

    public int saveDeliveryAddress(DeliveryAddress deliveryAddress);

    /**
     * 修改
     * @param deliveryAddress
     * @return
     */

    public int updateDeliveryAddress(DeliveryAddress deliveryAddress);

    /**
     *删除
     * @param daId
     * @return
     */

    public int removeDeliveryAddress(Integer daId);
}
